#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H

#define ENONE        0  /* Err None */

#define	EPERM		 1	/* Operation not permitted */
#define	ENOENT		 2	/* No such file or directory */
#define	ESRCH		 3	/* No such process */
#define	EINTR		 4	/* Interrupted system call */
#define	EIO		     5	/* I/O error */
#define	ENXIO		 6	/* No such device or address */
#define	E2BIG		 7	/* Argument list too long */
#define	ENOEXEC		 8	/* Exec format error */
#define	EBADF		 9	/* Bad file number */
#define	ECHILD		10	/* No child processes */
#define	EAGAIN		11	/* Try again */
#define	ENOMEM		12	/* Out of memory */
#define	EACCES		13	/* Permission denied */
#define	EFAULT		14	/* Bad address */
#define	ENOTBLK		15	/* Block device required */
#define	EBUSY		16	/* Device or resource busy */
#define	EEXIST		17	/* File exists */
#define	EXDEV		18	/* Cross-device link */
#define	ENODEV		19	/* No such device */
#define	ENOTDIR		20	/* Not a directory */
#define	EISDIR		21	/* Is a directory */
#define	EINVAL		22	/* Invalid argument */
#define	ENFILE		23	/* File table overflow */
#define	EMFILE		24	/* Too many open files */
#define	ENOTTY		25	/* Not a typewriter */
#define	ETXTBSY		26	/* Text file busy */
#define	EFBIG		27	/* File too large */
#define	ENOSPC		28	/* No space left on device */
#define	ESPIPE		29	/* Illegal seek */
#define	EROFS		30	/* Read-only file system */
#define	EMLINK		31	/* Too many links */
#define	EPIPE		32	/* Broken pipe */
#define	EDOM		33	/* Math argument out of domain of func */
#define	ERANGE		34	/* Math result not representable */

#define	E_PFILE_NULL    (0X8000 + 1)
#define	E_PFS_NULL      (0X8000 + 2)
#define	E_PPATH_NULL    (0X8000 + 3)
#define	E_FSDIR_CRC     (0X8000 + 4)
#define	E_FILEINDEX     (0X8000 + 5)
#define	E_FILE_NAME     (0X8000 + 6)
#define	E_DIR_NULL      (0X8000 + 7)
#define	E_NO_FS         (0X8000 + 8)
#define	E_NO_FSFUNC     (0X8000 + 9)
#define	E_NO_VFS        (0X8000 + 10)
#define	E_VFS_HDL       (0X8000 + 11)
#define	E_VFILE_HDL     (0X8000 + 12)
#define	E_VFS_OPS       (0X8000 + 13)
#define	E_FS_PFILE      (0X8000 + 14)
#define E_FSCAN_ERR     (0x8000 + 15)
#define	E_SEEK_END      (0X8010 + 0)
#define	E_SEEK_START    (0X8010 + 1)
#define	E_PFILE_CURR    (0X8010 + 2)
#define E_PNAME_LEN     (0x8010 + 3)
#define E_PFILE_NOEXT   (0x8010 + 4)
#define E_PEXT_NULL     (0x8010 + 5)
#define E_FILE_NOCMD    (0x8010 + 6)
#define E_DIR_MISM      (0x8010 + 7)
#define E_SCLUST_MINUS  (0x8010 + 8)
#define E_SCLUST_OVERFLOW (0x8010 + 9)
#define E_SCLUST_NO     (0x8010 + 10)
#define E_OPENBYPATH    (0x8010 + 11)
#define E_OPENBYINDEX   (0x8010 + 12)
#define E_OPENBYSCLUST  (0x8010 + 13)
#define E_OPENBYFILE    (0x8010 + 14)
#define E_MOUNT         (0x8010 + 15)

#define E_DECODER       (0X8100 + 1)
#define E_PARG_NULL     (0x8100 + 2)
#define E_ENC_FORMAT    (0x8100 + 3)

#define E_AMEM_OVERFLOW    (0x8140 + 1)
#define E_AMEM_NOINDEX     (0x8140 + 2)
#define E_AMEM_BUFF_NULL   (0x8140 + 3)

#define E_MIO_NO_MEN    (0x8200 + 1)
#define E_MIO_READ      (0x8200 + 2)
#define E_MIO_LOGO      (0x8200 + 3)
#define E_MIO_VER       (0x8200 + 4)
#define E_MIO_CHL       (0x8200 + 5)
#define E_MIO_END       (0x8200 + 6)
#define E_MIO_LOCATE    (0x8200 + 7)
#define E_MIO_LEVEL     (0x8200 + 8)

#define E_NVM_RHEAD            (0x8300 + 0x01)
#define E_NVM_READ             (0x8300 + 0x02)
#define E_NVM_HEAD             (0x8300 + 0x03)
#define E_NVM_DI_LEN           (0x8300 + 0x04)
#define E_NVM_NO_DI            (0x8300 + 0x05)
#define E_NVM_NO_INIT          (0x8300 + 0x06)
#define E_NVM_BUF_LEN          (0x8300 + 0x07)
#define E_NVM_BMAP_OVERFLOW    (0x8300 + 0x08)
#define E_NVM_OPEN_DEVICE      (0x8300 + 0x09)
#define E_NVM_CACHE_NULL       (0x8300 + 0x0a)
#define E_NVM_ENTRY_NULL       (0x8300 + 0x0b)
#define E_NVM_CRC_ERR          (0x8300 + 0x0c)
#define E_NVM_DATA_TOO_LONG    (0x8300 + 0x0d)
#define E_NVM_DATA_ADDR        (0x8300 + 0x0e)
#define E_NVM_WRITE			   (0x8300 + 0x0f)
#define E_NVM_ID_OUTRANGED 	   (0x8300 + 0x10)
#define E_NVM_NO_IGNORE        (0x8300 + 0x11)

#define E_USBMIC_NO_FUNC       (0x8400 + 0x00)
#define E_USBMIC_SOUND_NULL    (0x8400 + 0x01)

#define E_AU2RF_OBJ_NULL       (0x8500 + 0x00)
#define E_AU2RF_RF_OFFLINE     (0x8500 + 0x01)
#define E_AU2RF_RF_BUSY        (0x8500 + 0x02)
#define E_AU2RF_SNED_HEAD_ERR  (0x8500 + 0x03)
#define E_AU2RF_SNED_DATA_ERR  (0x8500 + 0x04)

#define E_F1A_INDEX	    (0X9000 + 0)
#define E_F1A_DBUF	    (0X9000 + 1)
#define E_F1A_FORMAT    (0X9000 + 2)
#define E_F1A_TYPE	    (0X9000 + 3)
#define E_F1A_OUTRGE    (0X9000 + 3)


#define E_MIDI_INDEX    (0X9010 + 0)
#define E_MIDI_DBUF	    (0X9010 + 1)
#define E_MIDIFORMAT    (0X9010 + 2)
#define E_MIDI_TYPE	    (0X9010 + 3)
#define E_MIDI_NO_CFG   (0X9010 + 4)
#define E_MIDI_FILEHDL  (0X9010 + 5)

#define E_A_INDEX	    (0X9020 + 0)
#define E_A_DBUF	    (0X9020 + 1)
#define E_A_FORMAT      (0X9020 + 2)
#define E_A_TYPE	    (0X9020 + 3)

#define E_UMP3_INDEX    (0X9030 + 0)
#define E_UMP3_DBUF	    (0X9030 + 1)
#define E_UMP3_FORMAT   (0X9030 + 2)
#define E_UMP3_TYPE	    (0X9030 + 3)

#define E_MP3_ST_INDEX  (0X9040 + 0)
#define E_MP3_ST_DBUF   (0X9040 + 1)
#define E_MP3_ST_FORMAT (0X9040 + 2)
#define E_MP3_ST_TYPE   (0X9040 + 3)

#define E_WAV_INDEX     (0X9050 + 0)
#define E_WAV_DBUF	  	(0X9050 + 1)
#define E_WAV_FORMAT   	(0X9050 + 2)
#define E_WAV_TYPE	  	(0X9050 + 3)

#define E_F1X_NO_HLEN   (0X9060 + 1)
#define E_F1X_NO_ULEN   (0X9060 + 2)
#define E_F1X_HU_ZERO   (0X9060 + 3)
#define E_F1X_HU_ERR    (0X9060 + 4)
#define E_F1X_U2LONG    (0X9060 + 5)
#define E_F1X_FORMAT    (0X9060 + 6)

#define E_OPUS_INDEX    (0X9070 + 0)
#define E_OPUS_DBUF     (0X9070 + 1)
#define E_OPUS_FORMAT   (0X9070 + 2)
#define E_OPUS_TYPE     (0X9070 + 3)

#define E_ADCANA_PARA   (0xA000 + 1)
#define E_ADC_SR        (0xA000 + 2)
#define E_ADC_BUF       (0xA000 + 3)
#define E_AUDIO_CLK     (0xA000 + 4)

#define E_BSP_EVENT     (0xB000 + 1)

#define E_PDEV_ILL      (0xC000 + 1)
#define E_IDEV_ILL      (0xC000 + 2)
#define E_PDEV_FAIL     (0xC000 + 3)
#define E_DEV_LOST      (0xC000 + 4)
#define E_DEV_ONLINE    (0xC000 + 5)
#define E_DEV_OFFLINE   (0xC000 + 6)
#define E_DEV_ALLOFF    (0xC000 + 7)
#define E_DEV_NOTCHANGE (0xC000 + 8)
#define E_DEV_NULL	    (0XC000 + 9)
#define E_DEV_NOCMD	    (0XC000 + 0xa)
#define E_DEV_NOT_FIND  (0XC000 + 0xb)

#define E_SD_SEND_CMD                           (0xD000 + 0x00)
#define E_SD_SEND_CMD2                          (0xD000 + 0x01)
#define E_SD_SEND_CMD3                          (0xD000 + 0x02)
#define E_SD_SEND_CMD7                          (0xD000 + 0x03)
#define E_SD_SEND_CMD8                          (0xD000 + 0x04)
#define E_SD_SEND_CMD9                          (0xD000 + 0x05)
#define E_SD_SEND_CMD13                         (0xD000 + 0x06)
#define E_SD_SEND_CMD55                         (0xD000 + 0x07)
#define E_SD_SEND_ACMD51                        (0xD000 + 0x08)
#define E_SD_SEND_ACMD41                        (0xD000 + 0x09)
#define E_SD_SEND_ACMD41_TIMEOUT                (0xD000 + 0x0A)
#define E_SD_SEND_CMD6_SET_SPEED_TIMEOUT        (0xD000 + 0x0B)
#define E_SD_SEND_CMD6_MODE_0                   (0xD000 + 0x0C)
#define E_SD_SEND_CMD6_MODE_1                   (0xD000 + 0x0D)
#define E_SD_SEND_CMD_READ_DATA                 (0xD000 + 0x0E)
#define E_SD_SEND_CMD_WRITE_DATA                (0xD000 + 0x0F)
#define E_SD_SEND_CMD_TIMEOUT                   (0xD000 + 0x10)
#define E_SD_SEND_STOP_CMD_TIMEOUT              (0xD000 + 0x11)
#define E_SD_CAN_NOT_READ_CARD                  (0xD000 + 0x12)
#define E_SD_CAN_NOT_WRITE_CARD                 (0xD000 + 0x13)
#define E_SD_READ_PRE                           (0xD000 + 0x14)
#define E_SD_WRITE_PRE                          (0xD000 + 0x15)
#define E_SD_SUS_PRE                            (0xD000 + 0x16)
#define E_SD_FLUSH_PRE                          (0xD000 + 0x17)
#define E_SD_RECEIVE_DATA                       (0xD000 + 0x18)
#define E_SD_RECEIVE_DATA_CRC                   (0xD000 + 0x19)
#define E_SD_RECEIVE_DATA_TIMEOUT               (0xD000 + 0x1A)
#define E_SD_READ_DATA                          (0xD000 + 0x1B)
#define E_SD_READ_DATA_CRC                      (0xD000 + 0x1C)
#define E_SD_READ_DATA_CRC_PRE                  (0xD000 + 0x1D)
#define E_SD_SEND_DATA_CRC                      (0xD000 + 0x1E)
#define E_SD_SEND_DATA_TIMEOUT                  (0xD000 + 0x1F)
#define E_SD_WRITE_CARD_CRC                     (0xD000 + 0x20)
#define E_SD_WRITE_CARD_CRC_PRE                 (0xD000 + 0x21)
#define E_SD_FLUSH_CRC                          (0xD000 + 0x22)
#define E_SD_BUSY_SEM_PEND_TIMEOUT              (0xD000 + 0x23)
#define E_SD_STATUS                             (0xD000 + 0x24)
#define E_SD_INIT                               (0xD000 + 0x25)
#define E_SD_OPEN                               (0xD000 + 0x26)
#define E_SD_CLOSE                              (0xD000 + 0x27)



#endif
